home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / programming / e / powerd0.06 / modules / devices / prtbase.m < prev    next >
Text File  |  1999-11-30  |  2KB  |  111 lines

  1. MODULE    'devices/serial',
  2.             'devices/timer',
  3.             'exec/libraries',
  4.             'exec/ports',
  5.             'exec/tasks',
  6.             'intuition/preferences'
  7.  
  8. CONST    DEVICES_PRTBASE_I=1
  9.  
  10. OBJECT DeviceData
  11.     Lib:Lib,
  12.     Segment:LONG,
  13.     ExecBase:LONG,
  14.     CmdVectors:LONG,
  15.     CmdBytes:PTR TO CHAR,
  16.     NumCommands:UWORD
  17.  
  18. CONST    DU_FLAGS=9,
  19.         IOF_QUEUED=16,
  20.         IOF_CURRENT=$20,
  21.         IOF_SERVICING=$40,
  22.         IOF_DONE=$80,
  23.         DUF_STOPPED=1,
  24.         P_PRIORITY=0,
  25.         P_OLDSTKSIZE=$800,
  26.         P_STKSIZE=$1000,
  27.         P_BUFSIZE=$100,
  28.         P_SAFESIZE=$80,
  29.         PF_IOR0=1,
  30.         PF_IOR1=2,
  31.         PF_EXPUNGED=$80
  32.  
  33. OBJECT PrinterData
  34.     DD:DeviceData,
  35.     Unit:MP,
  36.     PrinterSegment:LONG,
  37.     PrinterType:UWORD,
  38.     SegmentData:PTR TO PrinterSegment,
  39.     PrintBuf:PTR TO CHAR,
  40.     PWrite:LONG,
  41.     PBothReady:LONG,
  42.     NEWUNION    IOR0
  43.         P0:IOExtPar,
  44.         S0:IOExtSer
  45.     UNION IOR1
  46.         P1:IOExtPar
  47.         S1:IOExtSer
  48.     ENDUNION,
  49.     TIOR:TimeRequest,
  50.     IORPort:MP,
  51.     TC:TC,
  52.     OldStk[$800]:CHAR,
  53.     Flags:CHAR,
  54.     pad:CHAR,
  55.     Preferences:Preferences,
  56.     Pwaitenabled:CHAR,
  57.     pad1:CHAR,
  58.     Stk[$1000]:CHAR
  59.  
  60. CONST    PPCB_GFX=0,
  61.         PPCF_GFX=1,
  62.         PPCB_COLOR=1,
  63.         PPCF_COLOR=2,
  64.         PPC_BWALPHA=0,
  65.         PPC_BWGFX=1,
  66.         PPC_COLORALPHA=2,
  67.         PPC_COLORGFX=3,
  68.         PCC_BW=1,
  69.         PCC_YMC=2,
  70.         PCC_YMC_BW=3,
  71.         PCC_YMCB=4,
  72.         PCC_4COLOR=4,
  73.         PCC_ADDITIVE=8,
  74.         PCC_WB=9,
  75.         PCC_BGR=10,
  76.         PCC_BGR_WB=11,
  77.         PCC_BGRW=12,
  78.         PCC_MULTI_PASS=16
  79. /*
  80. OBJECT printerextendeddata
  81.   printername:PTR TO CHAR
  82.   init:LONG
  83.   expunge:LONG
  84.   open:LONG
  85.   close:LONG
  86.   printerclass:CHAR
  87.   colorclass:CHAR
  88.   maxcolumns:CHAR
  89.   numcharsets:CHAR
  90.   numrows:INT  -> This is unsigned
  91.   maxxdots:LONG
  92.   maxydots:LONG
  93.   xdotsinch:INT  -> This is unsigned
  94.   ydotsinch:INT  -> This is unsigned
  95.   commands:PTR TO LONG
  96.   dospecial:LONG
  97.   render:LONG
  98.   timeoutsecs:LONG
  99. -> Um, this had an illegal name
  100.   x8bitchars:PTR TO LONG
  101.   printmode:LONG
  102.   convfunv:LONG
  103. ENDOBJECT     /* SIZEOF=66 */
  104. */
  105. OBJECT PrinterSegment
  106.     NextSegment:LONG,
  107.     RunAlert:LONG,
  108.     Version:UWORD,
  109.     Revision:UWORD,
  110.     PED:PrinterExtendedData
  111.